package errorcode

func msgshowInit() {
	//展示的msg
	errorMsgShow = make(map[uint]string)
	errorMsgShow[EC_GL_SUCCESS] = "成功"
	errorMsgShow[PM_LOGIN_PERMISSION_DENIDE] = "服务器开小差，稍后再试一下吧~~"
	errorMsgShow[EC_GL_INVALID_ACCESS_TOKEN] = "服务器开小差，稍后再试一下吧~"
	errorMsgShow[EC_GL_INVALID_APPKEY] = "服务器开小差，稍后再试一下吧~"
	errorMsgShow[EC_GL_INVALID_IP] = "服务器开小差，稍后再试一下吧~"
	errorMsgShow[EC_GL_INVALID_URL_TIME] = "服务器开小差，稍后再试一下吧~"
	errorMsgShow[EC_GL_INVALID_URL_SIGN] = "服务器开小差，稍后再试一下吧~"
	errorMsgShow[EC_GL_INVALID_SERVICE] = "服务器开小差，稍后再试一下吧~"
	errorMsgShow[EC_GL_INVALID_SESSIONID] = "服务器开小差，稍后再试一下吧~"
	errorMsgShow[EC_GL_INVALID_HTTPS] = "服务器开小差，稍后再试一下吧~"
	errorMsgShow[EC_GL_INVALID_URL_PARAMS] = "服务器开小差，稍后再试一下吧~ "

	errorMsgShow[EC_GL_INVALID_JSON_BODY] = "服务器开小差，稍后再试一下吧~"

	errorMsgShow[EC_GL_INTERNAL_ERROR] = "服务器开小差，稍后再试一下吧~"

	//业务错误码

}

func MsgShow(errcode uint) string {
	if msg, ok := errorMsgShow[errcode]; ok {
		return msg
	}
	return "未知错误"
}
